package com.zy.datareceiver.binsess.warning.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "warning_threshold")
public class WarningThreshold {
    /**
     * 预警阈值id
     */
    @Id
    private Integer id;

    /**
     * 监测点id
     */
    @Column(name = "point_id")
    private Integer pointId;

    /**
     * 监测参数id
     */
    @Column(name = "parameter_id")
    private Integer parameterId;

    /**
     * 正方向预警阈值最大值
     */
    @Column(name = "positive")
    private Double positive;

    /**
     * 负方向预警阈值最大值
     */
    @Column(name = "negative")
    private Double negative;


    /**
     * 预警等级id
     */
    @Column(name = "level_id")
    private Integer levelId;

    /**
     * 时间
     */
    private Date time;


    public Double getPositive() {
        return positive;
    }

    public void setPositive(Double positive) {
        this.positive = positive;
    }

    public Double getNegative() {
        return negative;
    }

    public void setNegative(Double negative) {
        this.negative = negative;
    }

    /**
     * 获取预警阈值id
     *
     * @return id - 预警阈值id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置预警阈值id
     *
     * @param id 预警阈值id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取监测点id
     *
     * @return point_id - 监测点id
     */
    public Integer getPointId() {
        return pointId;
    }

    /**
     * 设置监测点id
     *
     * @param pointId 监测点id
     */
    public void setPointId(Integer pointId) {
        this.pointId = pointId;
    }

    /**
     * 获取监测参数id
     *
     * @return parameter_id - 监测参数id
     */
    public Integer getParameterId() {
        return parameterId;
    }

    /**
     * 设置监测参数id
     *
     * @param parameterId 监测参数id
     */
    public void setParameterId(Integer parameterId) {
        this.parameterId = parameterId;
    }

    /**
     * 获取预警等级id
     *
     * @return level_id - 预警等级id
     */
    public Integer getLevelId() {
        return levelId;
    }

    /**
     * 设置预警等级id
     *
     * @param levelId 预警等级id
     */
    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    /**
     * 获取时间
     *
     * @return time - 时间
     */
    public Date getTime() {
        return time;
    }

    /**
     * 设置时间
     *
     * @param time 时间
     */
    public void setTime(Date time) {
        this.time = time;
    }
}